package kliment.geom {
	import flash.geom.Point;

	/**
	* ...
	* @author Kliment
	*/
	public class PointExtended extends Point {
		private var _angle:Number;

		public function PointExtended(x:Number=0, y:Number=0, angle:Number = 0) {
			super(x, y);
			_angle = angle;
		}

		public function set angle(value:Number):void{
			_angle = value;
		}

		public function get angle():Number {
			return _angle;
		}

		public function delta(value:Point):Point{
			return new Point(x - value.x, y - value.y);
		}

		public function cloneme():PointExtended {
			return new PointExtended(x, y, _angle);
		}

		public static function identical(a:PointExtended, b:PointExtended):Boolean {
			if (a.x == b.x && a.y == b.y && a.angle == b.angle)
				return true;
			return false
		}
	}
}